﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace Belyn.Common.Log
{
    public class HtmlFile
    {
        public static void Write(string filename, string text,bool append)
        {
            StreamWriter sw = null;
            try
            {
                sw = new StreamWriter(filename, append);
                sw.Write(text);
            }
            catch (Exception ex)
            {

            }
            finally
            {
                if (sw != null)
                {
                    sw.Close();
                }
            }
            

        }

        public static void Write(string filename, string text)
        {
            Write(filename, text, false);
        }
    }
}
